﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="role-list.aspx.cs" Inherits="SsWeb._console.core.role_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <a href="application-list.aspx">
            应用列表
        </a>
        <a href="user-list.aspx">
            用户列表
        </a>
    </div>
    <div>
        <label>
            Name</label>
        <asp:TextBox ID="_ctlEditName" runat="server"></asp:TextBox><br />
        <label>
            名称</label>
        <asp:TextBox ID="_ctlEditCaption" runat="server"></asp:TextBox><br />
        <asp:Button ID="_ctlBtnSave" runat="server" Text="保存" OnClick="_ctlBtnSave_Click" />
    </div>
    <div>
        <asp:Repeater ID="_ctlGridRole" runat="server">
            <HeaderTemplate>
                <table>
                    <tr>
                        <th>
                            -
                        </th>
                        <th>
                            Caption
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <a href="?id=<%# Eval("Id") %>">选择</a>
                    </td>
                    <td>
                        <%# Eval("Caption") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <div>
        <b>已分配的用户</b>
        <div>
            <asp:Button ID="_ctlBtnRemoveUser" runat="server" Text="移除用户" OnClick="_ctlBtnRemoveUser_Click" />
        </div>
        <asp:Repeater ID="_ctlGridSelectedUsers" runat="server">
            <HeaderTemplate>
                <table>
                    <tr>
                        <th>
                            -
                        </th>
                        <th>
                            Name
                        </th>
                        <th>
                            Account
                        </th>
                        <th>
                            Email
                        </th>
                        <th>
                            Telephone
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:CheckBox ID="_ctlCheck" runat="server" />
                        <asp:HiddenField ID="_ctlTag" runat="server" Value='<%# Eval("Id") %>' />
                    </td>
                    <td>
                        <%# Eval("Name") %>
                    </td>
                    <td>
                        <%# Eval("Account") %>
                    </td>
                    <td>
                        <%# Eval("Email") %>
                    </td>
                    <td>
                        <%# Eval("Telphone") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <div>
        <b>用户列表</b>
        <div>
            <asp:Button ID="_ctlBtnAssign" runat="server" Text="分配" OnClick="_ctlBtnAssign_Click" />
            <asp:TextBox ID="_ctlEditFilter" runat="server"></asp:TextBox>
            <asp:Button ID="_ctlBtnSearch" runat="server" Text="查询" OnClick="_ctlBtnSearch_Click" />
        </div>
        <asp:Repeater ID="_ctlGridUser" runat="server">
            <HeaderTemplate>
                <table>
                    <tr>
                        <th>
                            -
                        </th>
                        <th>
                            Name
                        </th>
                        <th>
                            Account
                        </th>
                        <th>
                            Email
                        </th>
                        <th>
                            Telephone
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:CheckBox ID="_ctlCheck" runat="server" />
                        <asp:HiddenField ID="_ctlTag" runat="server" Value='<%# Eval("Id") %>' />
                    </td>
                    <td>
                        <%# Eval("Id") %>
                    </td>
                    <td>
                        <%# Eval("Account") %>
                    </td>
                    <td>
                        <%# Eval("Email") %>
                    </td>
                    <td>
                        <%# Eval("Telphone") %>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>
